﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using GreatB2C.Config.SiteInfo;
using GreatB2C.DALProfile;

namespace GreatB2C.DALSQLServer
{
    public class DbBase : IDbBase
    {
        DbCommand IDbBase.CreateCommand( )
        {
            return new SqlCommand( );
        }

        DbConnection IDbBase.CreateConnection( )
        {
            return new SqlConnection( );
        }

        DbDataAdapter IDbBase.CreateDataAdapter( )
        {
            return new SqlDataAdapter( );
        }

        DbParameter IDbBase.CreateParameter( )
        {
            return new SqlParameter( );
        }

        protected string Prefix;
        public DbBase( )
        {
            Prefix = UIConfig.TableNamePrefix;
            DbHelper.Provider = this;
        }
    }
}